﻿using DeviceMaintainGIS.BLL.Pro;
using DeviceMaintainGIS.Model;
using DeviceMaintainGIS.Model.ParInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace DeviceMaintainGIS.Controllers
{
    /// <summary>
    /// 项目信息
    /// </summary>
    public class ProController : ApiController
    {
        /// <summary>
        /// 通过ID获取项目信息
        /// </summary>
        /// <param name="ProjectGuid"></param>
        /// <returns></returns>
        public ReturnVM<ProInfoModel> Get(string ProjectGuid)
        {
            return new ProService().GetProListByID(ProjectGuid);
        }


        /// <summary>
        /// 获取项目信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public ReturnListVM<ProInfoModel> Post(ProRequest request)
        {
            return new ProService().GetProList(request);
        }

    }
}
